package com.eway.viewanimator.weidth;

import android.content.Context;
import android.graphics.Point;
import android.util.AttributeSet;

/**
 * 作者：Administrator
 * 时间：on 2019/1/28 16:27
 * 功能：
 */
public class CustomImageView extends android.support.v7.widget.AppCompatImageView {
	public CustomImageView(Context context) {
		super(context, null);
	}

	public CustomImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}


//	@Override
//	protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
//		super.onLayout(changed, left, top, right, bottom);
//	}

	public void setMethod(Point point) {
		layout(point.x, point.y, point.x + getWidth(), point.y + getHeight());
	}
}
